import uuid from 'uuid'
export default{
  newWidget(obj){
    let newObj={
      uuid:uuid(),
      code:obj.code,
      data:obj.data,
      config:obj.config,
      checked:true,
      title:obj.title
    }
    return JSON.parse(JSON.stringify(newObj))
  },
}
